package com.dkm.biz.gl.repository.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.gl.domain.GlCateSeo;
import com.dkm.biz.gl.persistence.dao.GlCateSeoQueryDao;
import com.dkm.biz.gl.persistence.entity.GlCateSeoPo;
import com.dkm.biz.gl.repository.GlCateSeoRepository;
import com.dkm.biz.repository.AbstractRepository;

/**
 * 对象功能:分类SEO，用于SEO和其它。 Repository接口的实现类
 * 开发公司:SKG.COM
 * 开发人员:CDQ
 * 创建时间:2015-08-17 17:35:23
 */
@Repository
public class GlCateSeoRepositoryImpl extends AbstractRepository<String, GlCateSeoPo,GlCateSeo> implements GlCateSeoRepository{
	  
	@Resource
	private  GlCateSeoQueryDao glCateSeoQueryDao;

	public GlCateSeo newInstance() {
		GlCateSeoPo po = new GlCateSeoPo();
		GlCateSeo glCateSeo = SpringHelper.getBean(GlCateSeo.class);
		glCateSeo.setData(po);
		return glCateSeo;
	}

	public GlCateSeo newInstance(GlCateSeoPo po) {
		GlCateSeo glCateSeo = SpringHelper.getBean(GlCateSeo.class);
		glCateSeo.setData(po);
		return glCateSeo;
	} 
	
	@Override
	protected IQueryDao<String, GlCateSeoPo> getQueryDao() {
		return glCateSeoQueryDao;
	}
	
}
